<!--自定义属性-->
<script>
$('#mainContent').css("width","95%");
$('#green_channel').css("display","none");
$('#author_profile').css("display","none");
$('#MySignature').css("display","none");
$('#blogTitle h1').css("padding-top","2%");
$('#blog_post_info_block').css("margin-top","50px");
</script>

<!--节点移除脚本-->
<script>
$('#blog-comments-placeholder').remove();
$('#comment_form').remove();
$('#sideBar').remove();
</script>

<!-- 定制导航栏 -->
<script>
var navBar = document.getElementById('navList');
function addNav(linkName, linkClassName, linkHref, linkLocation, isExternalLinks){
    var navigation = document.createElement("li");
    var navigationLink = document.createElement("a");

    navigationLink.class = "menu";
    navigationLink.id = linkClassName;
    navigationLink.href = linkHref;
    if (isExternalLinks) {
        navigationLink.target="_blank";
    }
    var navigationName = document.createTextNode(linkName);
    navigationLink.appendChild(navigationName);

    navigation.appendChild(navigationLink);
    var navigations = navBar.getElementsByTagName("li");
    if (linkLocation > navigations.length && linkLocation > 0){
        navBar.appendChild(navigation);
    } else {
        navBar.insertBefore(navigation, navigations[linkLocation-1]);
    }
}
addNav("Gitee","blog_nav_gitee","https://gitee.com/kancy666", 8, true);
addNav("GitHub","blog_nav_github","https://github.com/huangchengkang", 9, true);
</script>

<!-- 背景音乐 -->
<!-- Your XlchPlayerKey -->
<script>XlchKey="d9zz3e6DHX";</script>
<!-- font-awesome 4.2.0 -->
<link href="http://lib.baomitu.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- JQuery 2.2.4 -->
<script src="http://lib.baomitu.com/jquery/2.2.4/jquery.min.js"></script>
<!-- JQuery-mousewheel 3.1.9 -->
<script src="http://lib.baomitu.com/jquery-mousewheel/3.1.9/jquery.mousewheel.min.js"></script>
<!-- Scrollbar -->
<script src="http://static.badapple.top/BadApplePlayer/js/scrollbar.js"></script>
<!-- BadApplePlayer -->
<script src="http://static.badapple.top/BadApplePlayer/Player.js"></script>

<!-- 背景动画 -->
<script type="text/javascript" color="0,0,255" opacity='0.7' zIndex="-2" count="99" src="https://blog-static.cnblogs.com/files/kancy/bg-canvas-nest.js"></script>


<!-- 爱心特效 -->
<script type="text/javascript">

(function(window,document,undefined){
    var hearts = [];
    window.requestAnimationFrame = (function(){
        return window.requestAnimationFrame ||
            window.webkitRequestAnimationFrame ||
            window.mozRequestAnimationFrame ||
            window.oRequestAnimationFrame ||
            window.msRequestAnimationFrame ||
            function (callback){
                setTimeout(callback,1000/60);
            }
    })();
    init();
    function init(){
        css(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
        attachEvent();
        gameloop();
    }
    function gameloop(){
        for(var i=0;i<hearts.length;i++){
            if(hearts[i].alpha <=0){
                document.body.removeChild(hearts[i].el);
                hearts.splice(i,1);
                continue;
            }
            hearts[i].y--;
            hearts[i].scale += 0.004;
            hearts[i].alpha -= 0.013;
            hearts[i].el.style.cssText = "left:"+hearts[i].x+"px;top:"+hearts[i].y+"px;opacity:"+hearts[i].alpha+";transform:scale("+hearts[i].scale+","+hearts[i].scale+") rotate(45deg);background:"+hearts[i].color;
        }
        requestAnimationFrame(gameloop);
    }
    function attachEvent(){
        var old = typeof window.onclick==="function" && window.onclick;
        window.onclick = function(event){
            old && old();
            createHeart(event);
        }
    }
    function createHeart(event){
        var d = document.createElement("div");
        d.className = "heart";
        hearts.push({
            el : d,
            x : event.clientX - 5,
            y : event.clientY - 5,
            scale : 1,
            alpha : 1,
            color : randomColor()
        });
        document.body.appendChild(d);
    }
    function css(css){
        var style = document.createElement("style");
        style.type="text/css";
        try{
            style.appendChild(document.createTextNode(css));
        }catch(ex){
            style.styleSheet.cssText = css;
        }
        document.getElementsByTagName('head')[0].appendChild(style);
    }
    function randomColor(){
        return "rgb("+(~~(Math.random()*255))+","+(~~(Math.random()*255))+","+(~~(Math.random()*255))+")";
    }
})(window,document);

</script>